package controller

import (
	"gadmin/model"
	"gadmin/service"
	"github.com/gin-gonic/gin"
)

func SyncBookmark(c *gin.Context) {
	var bookmarks []model.Bookmark
	err := c.ShouldBindJSON(&bookmarks)
	if err != nil {
		SendError(c, err)
		return
	}
	err = service.SyncBookmark(bookmarks)
	SendOK(c)
}
